import java.util.Scanner;

public class cf973_A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while(t-- > 0) {
            int n,x,y;
            n = sc.nextInt();
            x = sc.nextInt();
            y = sc.nextInt();
            System.out.println((n+Math.min(x,y)-1)/Math.min(x,y));
        }
    }
}
